package com.ddx.dao;

import com.ddx.pojo.ShortVideo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ShortVideoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ShortVideo record);

    int insertSelective(ShortVideo record);

    ShortVideo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShortVideo record);

    int updateByPrimaryKey(ShortVideo record);

    List<ShortVideo> selectBySelectiveRecord(ShortVideo record);

    List<ShortVideo> selectUserLikeSV(@Param("userId") String userId);

    /*List<ShortVideo> marvellous(Map<String, Object> map);

    List<ShortVideo> follow(Map<String, Object> map);

    List<ShortVideo> type(Map<String, Object> map);*/

    List<ShortVideo> videoUrlNull(@Param("limit")Integer limit);

    List<ShortVideo> getList(Map<String, Object> map);

    int updateAddLikeNum(Integer id);

    int updateSubLikeNum(Integer id);
}